package com.nyist;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 1.
 *
 * @ClassName ${NAME}
 * @Description
 * @Author xiaoyang
 * @Date ${YEAR}/${MONTH}/${DAY}/${TIME}
 */
@EnableDiscoveryClient
@SpringBootApplication
public class DemoNyistApplication implements CommandLineRunner {

    @Value("${server.port}")
    private String port;

    private static final Logger logger = LoggerFactory.getLogger(DemoNyistApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(DemoNyistApplication.class, args);
    }

    @Override
    public void run(String... args) {
        logger.info("========demo 端口为: " + port + ", 模块启动完成!========");
    }

}